import com.itheima.domain.User;
import com.itheima.service.UserService;
import org.junit.Test;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

/**
 * @author zhangyan
 * @date 2021/2/24 20:06
 */


public class ttt {

    @Autowired
    UserService userService;

    @Test
    public void find(){
        List<User> all = userService.findAll();
        for (User user : all) {
            System.out.println(user);
        }
    }
}
